package com.ruoyi.wms.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 产品现存量对象 wms_productstock
 * 
 * @author chao
 * @date 2024-07-25
 */
public class WmsProductstock extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 产品现存量ID */
    private Long id;

    /** 产品ID */
    @Excel(name = "产品ID")
    private Long productId;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String name;

    /** 规格/x型号 */
    @Excel(name = "规格/x型号")
    private String model;

    /** 数量 */
    @Excel(name = "数量")
    private Double num;

    /** 单位 */
    @Excel(name = "单位")
    private String unitName;

    /** 备注 */
    @Excel(name = "备注")
    private String common;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setModel(String model) 
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }

    public void setNum(Double num)
    {
        this.num = num;
    }

    public Double getNum()
    {
        return num;
    }

    public void setUnitName(String unitName) 
    {
        this.unitName = unitName;
    }

    public String getUnitName() 
    {
        return unitName;
    }

    public void setCommon(String common) 
    {
        this.common = common;
    }

    public String getCommon() 
    {
        return common;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productId", getProductId())
            .append("name", getName())
            .append("model", getModel())
            .append("num", getNum())
            .append("unitName", getUnitName())
            .append("common", getCommon())
            .toString();
    }
}
